package com.geek.novel.activity.book

import android.os.Bundle
import android.view.View
import com.geek.novel.R
import com.geek.novel.activity.base.TitleBarActivity
import com.geek.novel.bo.AppContext
import com.geek.novel.utils.ToastUtils
import kotlinx.android.synthetic.main.activity_book_settings.*

/**
 * 设置页面
 */
class BookSettingsActivity: TitleBarActivity() {

	override fun pageName(): String{
		return AppContext.getContext().getString(R.string.title_bar_page_book_setting)
	}

	override fun onCreate(savedInstanceState: Bundle?) {
		super.onCreate(savedInstanceState)
		setContentView(R.layout.activity_book_settings)

	}

	/**附加控件*/
	override fun attachViewChild() {
		ly_book_setting_clear_cache.setOnClickListener(this)
	}


	override fun clickEvent(id: Int, v: View) {
		when(id){
			//清除缓存
			R.id.ly_book_setting_clear_cache->{
				ToastUtils.toast("缓存清除成功！")
			}
		}
	}

}